package com.czy.workflow;


import com.czy.workflow.demo.WorkDemo1;
import com.czy.workflow.demo.WorkDemo2;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

@SpringBootApplication
public class WorkflowApplication {


    public static void main(String[] args){
        ConfigurableApplicationContext applicationContext = SpringApplication.run(WorkflowApplication.class, args);
//        WorkDemo1 demo1 = applicationContext.getBean(WorkDemo1.class);
//        demo1.startDemo();

        WorkDemo2 demo2 = applicationContext.getBean(WorkDemo2.class);
        demo2.startDemo();
    }

}
